package me.firstapp.spi.shop;

import java.util.Map;

import me.firstapp.common.json.PageObject;
import me.firstapp.common.json.SingleObject;
import me.firstapp.common.module.shop.JsonPointRechargeCard;

public interface PointRechargeCardService {

	/**
	 * 调用新增充值卡接口
	 * 
	 * @param pointValue
	 * @param price
	 * @param counts
	 * @return
	 */
	SingleObject<Object> addPointRechargeCard(Double pointValue, Double price, Integer counts);

	/**
	 * 调用分页查询充值卡接口
	 * 
	 * @param pageNo
	 * @param pageSize
	 * @param searchParams
	 * @param sortParam
	 * @param sortType
	 * @return
	 */
	PageObject<JsonPointRechargeCard> findPointRechargeCardPage(Integer pageNo, Integer pageSize,
			Map<String, Object> searchParams, String sortParam, String sortType);

	/**
	 * 调用启用充值卡接口
	 * 
	 * @param ids
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	SingleObject<Object> startUseCard(String ids, Long startDate, Long endDate);

	/**
	 * 调用启售充值卡接口
	 * 
	 * @param id
	 * @return
	 */
	SingleObject<Object> startSellCard(Long id);

	/**
	 * 调用停用充值卡接口
	 * 
	 * @param id
	 * @return
	 */
	SingleObject<Object> stopCard(Long id);

	/**
	 * 调用已售充值卡接口
	 * 
	 * @param id
	 * @return
	 */
	SingleObject<Object> selled(Long id);
}
